.userInfoPage {
  background-color: var(--theme-bg-primary);
  color: var(--theme-text-secondary);
  font-family: 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', 'Arial', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;

  .header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--theme-bg-secondary);
  }

  .mainContent {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    background-color: var(--theme-bg-primary);
  }

  // 头像上传区域
  .avatarSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;

    .avatarContainer {
      position: relative;
      width: 96px;
      height: 96px;
      margin-bottom: 16px;

      :global {
        .adm-form-item-child {
          width: 96px;
          height: 96px;
          background: transparent;
          padding: 0;
          border-radius: 50%;

          .adm-form-item-child-inner {
            width: 100%;
            height: 100%;
            background: transparent;
            padding: 0;
            border-radius: 50%;

            .adm-image-uploader-cell {
              width: 96px;
              height: 96px;
              border-radius: 50%;

              .adm-image-uploader-cell-image {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                object-fit: cover;
              }

              .adm-image-uploader-upload-button-icon {
                line-height: 96px;
                color: var(--theme-text-muted)666;
              }

              .adm-image-uploader-cell-delete {
                top: 8px;
                right: 10px;
                border-radius: 50%;
              }
            }

            .adm-image-uploader-upload-button-wrap .adm-image-uploader-input {
              display: block !important;
            }
          }
        }
      }

      .editButton {
        position: absolute;
        bottom: 0;
        right: 0;
        background-color: var(--theme-primary);
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;

        .editIcon {
          font-family: 'Material Icons', serif;
          font-size: 14px;
          color: var(--theme-text-primary);
        }
      }
    }

    .uploadLabel {
      cursor: pointer;
      color: var(--theme-primary);
      font-size: 16px;
    }

    .errorText {
      color: var(--theme-accent-danger);
      font-size: 14px;
      margin-top: 8px;
      text-align: center;
    }
  }

  // 输入区域
  .inputSection {
    margin-bottom: 24px;

    .inputLabel {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: var(--theme-text-muted);
      margin-bottom: 8px;
    }

    .inputWrapper {
      position: relative;

      .usernameInput {
        width: 100%;
        background-color: var(--theme-bg-card);
        color: var(--theme-text-primary) !important;
        border: none;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 16px;
        outline: none;

        &:focus {
          border-color: var(--theme-primary);
          color: var(--theme-text-primary) !important;
        }

        &::placeholder {
          color: var(--theme-text-muted);
        }
      }

      .chevronIcon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-family: 'Material Icons', serif;
        font-size: 20px;
        color: var(--theme-text-muted);
        pointer-events: none;
      }
    }
  }

  // 性别选择区域
  .genderSection {
    .genderLabel {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: var(--theme-text-muted);
      margin-bottom: 8px;
    }

    .genderOptions {
      display: flex;
      gap: 16px;

      .genderOption {
        flex: 1;

        .genderRadio {
          display: none;
        }

        .genderLabel {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          background-color: transparent;
          border: 2px solid var(--theme-border-primary);
          border-radius: 8px;
          padding: 16px;
          cursor: pointer;
          transition: all 0.2s ease;
          margin-bottom: 0;

          .genderIcon {
            font-family: 'Material Icons', serif;
            font-size: 48px;
            margin-bottom: 4px;
          }

          .maleIcon {
            color: var(--theme-accent-info);
          }

          .femaleIcon {
            color: var(--theme-primary);
          }

          .genderText {
            font-size: 14px;
            color: var(--theme-text-muted);
          }
        }

        .maleSelected {
          background-color: var(--theme-bg-card);
          border-color: var(--theme-accent-info);

          .maleIcon,
          .genderText {
            color: var(--theme-accent-info);
          }
        }

        .femaleSelected {
          background-color: var(--theme-bg-card);
          border-color: var(--theme-primary);

          .femaleIcon,
          .genderText {
            color: var(--theme-primary);
          }
        }
      }
    }
  }
}

// 全局样式覆盖
:global {
  .adm-form-item {
    --padding-left: 0;
    --padding-right: 0;
    margin-bottom: 0;

    .adm-form-item-child-inner {
      background: transparent;
      border-radius: 0;
      padding: 0;
    }
  }

  .adm-input {
    --font-size: 16px;
    font-weight: normal;
    color: var(--theme-text-primary) !important;
    background-color: var(--theme-bg-card);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;

    &::placeholder {
      color: var(--theme-text-muted);
    }

    &:focus {
      border-color: var(--theme-primary);
      color: var(--theme-text-primary) !important;
    }
  }

  .adm-button {
    font-size: 16px;
  }
  .adm-list-body{
    background-color: transparent !important;
    border: none !important;
  }

  // 强制覆盖输入框文字颜色
  .adm-input-element {
    color: var(--theme-text-primary) !important;
  }

  .adm-input-element::placeholder {
    color: var(--theme-text-muted) !important;
  }

  .adm-input-element:focus {
    color: var(--theme-text-primary) !important;
  }

  // 更具体的输入框样式覆盖
  .adm-form-item .adm-input-element {
    color: var(--theme-text-primary) !important;
  }

  .adm-form-item .adm-input-element::placeholder {
    color: var(--theme-text-muted) !important;
  }

  .adm-form-item .adm-input-element:focus {
    color: var(--theme-text-primary) !important;
  }
}